package com.highstockings.service;

import com.highstockings.model.Article;
import com.highstockings.model.ArticleDetailsVo;

import java.util.List;
import java.util.Set;

/**
 * Created by diablo13064 on 2018/3/28.
 */
public interface ArticleService {
    int addArticle(Article article) throws Exception;

    List<Article> selectFivePics();

    List<Article> findAllArticle();

    ArticleDetailsVo findArticleDeitalsById(int id);

    List<ArticleDetailsVo> findAllArticleDetails();

    int addViewCount(int aid);

    int addUpCount(int aid);

    int addDownCount(int aid);

    Set<String> findAllTagName();

    List<ArticleDetailsVo> findSideBarInfo1();

    List<ArticleDetailsVo> findArticleByCountry(String country ,int pageNum,int pageSize);

    List<ArticleDetailsVo> findArticleByTag(String tag,int pageNum,int pageSize);

    int changeState(String status, int aid);

    List<ArticleDetailsVo> findArticleByContidtions(String column, String value, int pageNum, int pageSize);

    List<ArticleDetailsVo> findArticleByModelId(int mid, int pageNum, int pageSize);

    Article combineArticleInfo(Article article) throws Exception;

    String getUploadDir();

    List<ArticleDetailsVo> findArticleHome(int pageNum, int pageSize);
}
